<?php
/* @var $this SitesController */
/* @var $model Sites */
/* @var $form CActiveForm */
?>

<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'sites-form',
  'enableAjaxValidation'=>false,
  'htmlOptions'=>array('class' => 'form uniformForm validateForm'),
  )); ?>

  <?php if ($form->errorSummary($model)) :?>
  <div class="notify notify-error">
    <a href="javascript:;" class="close">×</a>
    <?php echo $form->errorSummary($model); ?>
  </div>
  <?php endif; ?>

	<div class="field-group">
		<?php echo $form->labelEx($model,'sitename'); ?>
		<div class="field">
		<?php echo $form->textField($model,'sitename',array('size'=>60,'maxlength'=>128)); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'site_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'site_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>

	<div class="">
		<?php echo $form->labelEx($model,'status'); ?>
		<div class="">
		    <?php echo $form->radioButtonList($model,'status', array('1'=>'Active','0'=>'Unactive'),array('separator'=>''));?>
		</div>
	</div>

	<div class="">
		<?php echo $form->labelEx($model,'has_captcha'); ?>
		<div class="">
		    <?php echo $form->radioButtonList($model,'has_captcha', array('1'=>'Yes','0'=>'No'),array('separator'=>''));?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'login_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'login_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'ad_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'ad_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'grid_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'grid_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'account_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'account_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'logout_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'logout_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'captcha_login_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'captcha_login_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'captcha_login_img_ex'); ?>
		<div class="field">
		<?php echo $form->textField($model,'captcha_login_img_ex',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'captcha_ad_url'); ?>
		<div class="field">
		<?php echo $form->textField($model,'captcha_ad_url',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'captcha_ad_img_ex'); ?>
		<div class="field">
		<?php echo $form->textField($model,'captcha_ad_img_ex',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>
	<div class="field-group">
		<?php echo $form->labelEx($model,'money_xpath'); ?>
		<div class="field">
		<?php echo $form->textField($model,'money_xpath',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'login_success_xpath'); ?>
		<div class="field">
		  <?php echo $form->textField($model,'login_success_xpath',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'login_success_value'); ?>
		<div class="field">
		  <?php echo $form->textField($model,'login_success_value',array('size'=>60,'maxlength'=>255)); ?>
		</div>
	</div>

  <div class="field-groups">

    <button class="btn btn-small btn-success" type="submit">
       <span class="icon-check"></span><?php echo Yii::t('main', 'button.ok'); ?>
    </button>
    <a href="<?php echo Yii::app()->createUrl('admin/sites/list', $_GET); ?>">
    <button class="btn btn-small btn-warning" type="button">
       <span class="icon-x"></span><?php echo Yii::t('main', 'button.cancel'); ?>
    </button>
    </a>

  </div>

<?php $this->endWidget(); ?>